function [ match ] = vertexMatch(vOrig, vMax)

vert_num = size(vOrig, 1);

match = zeros(vert_num, 1);
for i = 1:vert_num
    match(i, 1) = findMatch( vMax(i,:), vOrig );
end % for

end % function


function [found] = findMatch(row, matrix)
    found = 0;
    vert_num = size(matrix, 1);
    for i = 1 : vert_num
        if (found == 0)
            if ( norm(row - matrix(i, :), Inf) < 0.0015 )
                found = i;
            end
        end % if
    end % for
end % function


